.class final Lcom/estrongs/android/pop/utils/p$r;
.super Ljava/lang/Object;
.source "FileOperateUtils.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/utils/p;->a(Landroid/app/Activity;Lcom/estrongs/fs/g;Ljava/lang/String;Ljava/lang/String;ZZ)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic a:Landroid/app/Activity;

.field final synthetic b:Lcom/estrongs/fs/g;

.field final synthetic c:Ljava/lang/String;

.field final synthetic d:Ljava/lang/String;

.field final synthetic e:[Z

.field final synthetic f:Z


# direct methods
.method constructor <init>(Landroid/app/Activity;Lcom/estrongs/fs/g;Ljava/lang/String;Ljava/lang/String;[ZZ)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/utils/p$r;->a:Landroid/app/Activity;

    iput-object p2, p0, Lcom/estrongs/android/pop/utils/p$r;->b:Lcom/estrongs/fs/g;

    iput-object p3, p0, Lcom/estrongs/android/pop/utils/p$r;->c:Ljava/lang/String;

    iput-object p4, p0, Lcom/estrongs/android/pop/utils/p$r;->d:Ljava/lang/String;

    iput-object p5, p0, Lcom/estrongs/android/pop/utils/p$r;->e:[Z

    iput-boolean p6, p0, Lcom/estrongs/android/pop/utils/p$r;->f:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/utils/p$r;->a:Landroid/app/Activity;

    invoke-static {v0}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v0

    const/4 v1, 0x0

    .line 2
    :try_start_0
    iget-object v2, p0, Lcom/estrongs/android/pop/utils/p$r;->b:Lcom/estrongs/fs/g;

    iget-object v3, p0, Lcom/estrongs/android/pop/utils/p$r;->c:Ljava/lang/String;

    invoke-virtual {v0, v2, v3}, Lcom/estrongs/fs/f;->b(Lcom/estrongs/fs/g;Ljava/lang/String;)Z

    move-result v0
    :try_end_0
    .catch Lcom/estrongs/fs/FileExistException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/exception/AbstractException;->getMessage()Ljava/lang/String;

    move-result-object v2

    .line 4
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Failed to renameFile : "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v4, p0, Lcom/estrongs/android/pop/utils/p$r;->d:Ljava/lang/String;

    .line 5
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const-string v4, "FileOperateUtils"

    .line 6
    invoke-static {v4, v3, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/utils/p$r;->a:Landroid/app/Activity;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/estrongs/android/pop/utils/p$r;->a:Landroid/app/Activity;

    const v5, 0x7f110770

    invoke-virtual {v4, v5}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    if-nez v2, :cond_0

    const-string v2, ""

    goto :goto_0

    :cond_0
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, ":"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    :goto_0
    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/estrongs/android/pop/utils/i;->b(Landroid/content/Context;Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 8
    :catch_1
    iget-object v0, p0, Lcom/estrongs/android/pop/utils/p$r;->a:Landroid/app/Activity;

    const v2, 0x7f11076f

    invoke-virtual {v0, v2}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/estrongs/android/pop/utils/i;->b(Landroid/content/Context;Ljava/lang/CharSequence;)V

    :goto_1
    const/4 v0, 0x0

    .line 9
    :goto_2
    iget-object v2, p0, Lcom/estrongs/android/pop/utils/p$r;->e:[Z

    aput-boolean v0, v2, v1

    if-eqz v0, :cond_1

    .line 10
    iget-boolean v0, p0, Lcom/estrongs/android/pop/utils/p$r;->f:Z

    if-eqz v0, :cond_1

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/pop/utils/p$r;->a:Landroid/app/Activity;

    const v1, 0x7f110954

    .line 12
    invoke-virtual {v0, v1}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v1

    .line 13
    invoke-static {v0, v1}, Lcom/estrongs/android/pop/utils/i;->b(Landroid/content/Context;Ljava/lang/CharSequence;)V

    :cond_1
    return-void
.end method
